<?php

// 4/10/2010: immanuel192 write this action

if (!defined('EXPONENT')) exit('');

//
$playlist=exponent_sessions_getTicketString();
$pl=$db->selectObject('present_playlist','session = "' . $playlist .'"');
if (!$pl)
	{
		$pl=null; $pl->session=$playlist; $pl->create_time=$time;
		$pl->id=$db->insertObject($pl,"present_playlist");
	}
$db->delete("present_playlist_songs","playlist_id = {$pl->id}");
exponent_flow_redirect();
?>
